package com.pll.service;

import com.pll.controller.admin.order.vo.ConditionPaginationVO;
import com.pll.dto.ResponseDto;
import com.pll.vo.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.ArrayList;

/**
 * @className: OrderService
 * @author: XR_Z
 * @date: 2025/6/9 18:55
 * @Version: 1.0
 * @description: 订单相关Service
 */

public interface OrderService {

    /**
     * 分页获取商家待确定订单信息
     * @param conditionPaginationVO 分页条件信息
     * @return dto
     */
    ResponseDto pendingOrders(ConditionPaginationVO conditionPaginationVO);

    /**
     * 将某个待确定订单修改为已接单
     * @param id 订单id
     * @return  dto
     */
    ResponseDto modifiedToReceived(int id);

    /**
     * 批量修改待确定订单为已接单
     * @param ids 需要修改的订单ID集合
     * @return dto
     */
    ResponseDto volumeLawsOrdersTaken(ArrayList<Integer> ids);

    /**
     * 将某个待确定订单修改为取消接单
     * @param id 订单id
     * @return dto
     */
    ResponseDto refuse(int id);

    /**
     * 批量修改待确定订单为取消接单
     * @param ids 需要修改的订单ID集合
     * @return dto
     */
    ResponseDto bulkRejection(@Param("ids") ArrayList<Integer> ids);
}
